
<!--{include common_head}-->
<style>
body {
	text-align:center;
	margin:0px;
}

#Div_booklist table {
	font-size: 14px;
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #9C0;
	border-right-color: #9C0;
	border-bottom-color: #9C0;
	border-left-color: #9C0;
}
#td_time {
	width:90px;
	text-align:center;
}
#td_course {
	width:150px;
	text-align:center;
}
#td_fee {
	width:70px;
	text-align:center;
}
#td_named {
	width:70px;
	text-align:center;
}
#Div_booklist table tbody tr td {
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CF9;
	border-right-color: #CF9;
	border-bottom-color: #CF9;
	border-left-color: #CF9;
}

#Div_booklist {
	position:absolute;
	width:550px;
	height:auto;
	left:20px;
	top:80px;
	background:#f5fbee;
	font-size: 14px;
}

#div_submit {
	float:left;
	width:550px;
	height:auto;
}
#apDiv1 {
	float:left;
	width:550px;
	height:auto;
	background:#f5fbee;
	z-index:1;
}
#apDiv2 {
	float:left;

	width:550px;
	height:auto;
	padding-top:20px;
	z-index:1;
	background:#f5fbee;
}
#apDiv2 image {
	border:none;
	
}
</style>

<div id="Div_booklist">

	<div id="div_submit">
		<form action="/bookedList.php">
		<input type="text" name="search_date" onfocus="WdatePicker({lang:'jp'})" class="Wdate" value="{$year}-${sprintf("%02d",$month)}-${sprintf("%02d",$day)}"/>
		<input type="submit" name="" value="search"/>
        </form>
	</div>
  <div id="apDiv1">
<table cellspacing="0" cellpadding="5" border="1" width="550">
    <tbody>
    <tr>
      <td id="td_time">時間</td>
      <td id="td_course">コース名</td>
      <td id="td_fee">値段</td>
      <td id="td_named">指名</td>
      <!--<td align="center">設備</td>-->
      <td align="center"></td>
    </tr>
    <!--{loop $bookedList $index $one}-->
    <tr>
      <td align="center">
		${date("H:i", $one['service_start_time'])} ～ ${date("H:i", $one['service_end_time'])}</td>
      <td align="center">{$serviceIdList[$one['service_id']]}</td>
      <td align="center">${number_format($one['money'])}円</td>
      <!--{if $one['designation']==0}-->
      <td align="center">指名なし</td>
      <!--{else}-->
      <td>指名</td>
      <!--{/if}-->
      
      <!--<td><font size="2">{$deviceIdList[$one['service_id']]}</font></td>-->
      <!--{if ($one['user_id']==$login_user_id)}-->
      <!--{if ($one['service_start_time'] > $now)}-->
      <td align="center">
		<a href="/bookedList.php?id={$one['id']}&action=del" 
			onclick="return confirm('本当に予約をキャンセルしますか？')"
			style="text-decoration: none;">
		</a>
		<button onclick="delOrder(this)">キャンセル</button>
	  </td>
      <!--{/if}-->
      <!--{/if}-->
    </tr>
    <!--{/loop}-->    
  </tbody></table>
</div>
  <div id="apDiv2"> <a href="/index.php"><img src="/static/images/bt_aki_on.gif" width="91" height="29" /></a></div>
</div>

<!-- End Save for Web Slices -->
<script type="text/javascript">
function delOrder(obj){
	var aObj = $(obj).prev();
	var url = $(aObj).attr("href");
	var r=confirm("本当に予約をキャンセルしますか？");
	if( r ){
		window.location=url;
	}
}


</script>
</body>

</html>